package com.atguigui.leetcode;

/**
 * 1108.IP 地址无效化
 * Project: leetcode
 * Package: com.atguigui.leetcode
 * Version: 1.0
 * <p>
 * Created by WJX on 2022/6/21 10:02
 */
public class P1108DefangingAnIpAddress {
    public static void main(String[] args) {
        Solution solution = new P1108DefangingAnIpAddress().new Solution();
        // TO TEST
    }

    //leetcode submit region begin(Prohibit modification and deletion)
    class Solution {
        public String defangIPaddr(String address) {
            return address.replaceAll("\\.", "[.]");
        }
    }
}
